package com.lzy.pattern.adapter.object_adapter;

/**
 * @ClassName: ScCardImpl
 * @Description: 目标实现类
 * @Author: LiuZy
 * @Date: 2022/4/23 09:26
 * @Version: 1.0
 */
public class ScCardImpl implements SdCard {

    @Override
    public String read() {
        System.out.println("SD卡读取数据。");
        return "SD卡data";
    }

    @Override
    public void write(String msg) {
        System.out.println("SD卡写入数据:" + msg);
    }
}